<?php

/**
 * Description of Helpers_SearchForm
 *
 * @author a.novikov
 */
class Helpers_SearchForm extends Helpers_Base {
	
	protected $extended;

	public function getViewPath() {
		if ($this->extended) {
			$ret = 'layouts/blocks/search_extended.tpl';
		}
		else {
			$ret = 'layouts/blocks/search_simple.tpl';
		}
		return $ret;
	}

	public function searchForm($extended) {

		/**
		 * @todo Убрать заглушку, сделать рабочий поиск
		 */
		return ''; // Заглушка


		$args = func_get_args();

		unset( $args[0] );

		$this->extended = $extended;

		if ($extended) {
			$method = 'extended';
		}
		else {
			$method = 'simple';
		}

		$this->$method($args);
		
		return $this->render();
	}

	protected function extended() {

	}

	protected function simple($showLink = false) {
		$this->view->show_link = $showLink;
	}
}